﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Teleplex.DataModels
{
    /// <summary>
    /// Object for storing info about TV Characters
    /// </summary>
    public class TVCharacter
    {
        public int Id { get; set; }

        public virtual TVShow TVShow { get; set; }

        //public List<int> TVActorId { get; set; }
        public virtual List<TVActorTVCharacter> TVActorTVCharacters { get; set; }
        public int TVShowId { get; set; }

        public string Name { get; set; }
        public string Bio { get; set; }
        public string Actor { get; set; }
        public string ImageURL { get; set; }

        public TVCharacter()
        {

        }

        public TVCharacter(int tvShowId, string name, string bio, string actor, string image)
        {
            TVShowId = tvShowId;
            Name = name;
            Bio = bio;
            Actor = actor;
            ImageURL = image;
        }

        public void SetProperties(TVCharacter character)
        {
            this.Name = character.Name;
            this.Actor = character.Actor;
            this.Bio = character.Bio;
            this.ImageURL = character.ImageURL;
        }
    }
}
